package com.songlanyun.modules.withdrawconfig.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 提现设置
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2020-12-18 13:55:07
 */
@Data
@TableName("yxt_system_withdraw_config")
public class WithdrawConfig extends RootEntity<Long, WithdrawConfig> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 最低提现金额
     */
    @NotNull(message = "最低提现金额不能为空")
    @DecimalMin(value = "1", message = "最低提现金额不能小于1元")
    private BigDecimal minAmount;
    /**
     * 最高提现金额
     */
    @NotNull(message = "最高提现金额不能为空")
    private BigDecimal maxAmount;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
	@TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

	@Override
	public Long getIdentity() {
		return id;
	}
}
